﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace prototype123.controllers
{

    // EndTermController handles ending a term
    class EndTermController
    {
        // Function: Ends the term for the current student
        // Preconditions: a current student is selected
        // Postcondtions: the database TermItem for the student is marked as done
        public bool EndTerm(DateTime end_date, int stu_id, int term_id)
        {
            // Student currStudent = global currentStudent

            // Check if the end_date is valid

                // Make sure it is the current day or ealier than the current day

            // Check the Course Assignments to see if they have the points possible/earned data filled in 

                // TermItemDAO termitemDAO = new TermItemDAO()

                // termitemDAO.CheckToSeeIfTheyHaveThePointsPossibleandearnedDataFilledIn()

                // if not, then return false

            // OTherwise, switch the status of the term to done (which would be 0 I suppose)

                // load StudentTerm = stuTerm

                // stuTerm.save(ipdate the status, update the end date)


            return false;
        }

    }
}
